import { usePageRequest } from "../../../../utils/request";
import dayjs from "../../../../utils/day";

Component({
    properties: {},
    data: {},
    methods: {
        onLoad() {
            this.request = new usePageRequest('api/ownermsg', {
                pretreatment: data => {
                    data.list = data.list.map(item => {
                        item.date = dayjs.unix(item.release_time).format('YYYY年M月D日 HH:mm:ss')
                        return item
                    })
                    return data
                }
            }, this)
        }
    }
});
